Robot apparatus and method of controlling the posture thereof

ABSTRACT

The CPU 102 detects that the posture of the apparatus main body has been shifted from the normal posture into an abnormal posture on the basis of the acceleration information obtained as detection output of the acceleration sensor 41. Then, it restores the normal posture by means of a playback technique for controlling various drivers 3D through 7D, using route planning data stored in advance in the memory 101 for restoring the normal posture from a falling posture.

This application is a continuation of application Ser. No. 09/485,184, filed on Apr. 18, 2000 now U.S. Pat. No. 6,330,494, which is a 371 of PCT/JP99/03089 filed Jun. 9, 1999.

TECHNICAL FIELD

This invention relates to a robot apparatus adapted to restore its normal posture by itself from an abnormal posture such as a tumbling posture and a method of controlling the posture of such a robot apparatus.

BACKGROUND ART

Various robots with different mechanical features are known to date including tired automotive robots adapted to move by means of revolving tires and two-legged or four-legged self-supporting walkable robots.

A robot of this type is typically provided with a mechanical system comprising actuators having a predetermined degree of freedom, sensors arranged at respective positions to detect predetermined physical quantities and a control section having microcomputers for controlling and driving the actuators individually to make the robot move by itself and/or perform a predetermined action in a coordinated manner. Such a robot is produced by assembling components including a trunk, legs and a head to make them show predetermined mutual relationships.

Walkable robots having two or more than two legs include those typically showing a profile resembling a cat or a dog and having four legs each of which is provided with a predetermined number of joints. The joints of the legs of such a robot can be controlled by recording and reproducing positional information and velocity information according to instructions or by carrying out arithmetic operations, using a kinetic model along with positional information and velocity information.

If controlled according to instructions or on the basis of a kinetic model, the motion of a known robot is designed on the basis of certain assumptions concerning the environment of the activity of the robot that is conceivable to the designer. Therefore, in an environment where those assumptions do not hold true, the robot can be forced to take an unintended posture, which by turn damages the function and/or the structure of the robot, if partly, and eventually make it go out of order. In some cases, the robot can damage the environment.

DISCLOSURE OF THE INVENTION

In view of the above identified circumstances, it is therefore an object of the present invention to provide means for effectively preventing a robot from being damaged or causing an accident if operated in an abnormal posture such as a tumbling posture.

Another object of the present invention is to provide a robot apparatus that can restore its normal posture by itself from an abnormal posture such as a tumbling posture and a method of controlling the posture of a robot.

According to the present invention, there is provided a robot apparatus comprising posture detection means for detecting the posture of the apparatus main body and outputting the result of the detection, posture determination means for determining if the apparatus main body is taking a predetermined posture or not on the basis of said result of the detection and posture modification means for modifying the posture of the apparatus main body when said posture determination means determines that the apparatus main body is taking the predetermined posture.

According to the present invention, there is also provided a method of controlling the posture of a robot apparatus comprising steps of detecting the posture of the apparatus main body, determining if the apparatus main body is taking a predetermined posture or not on the basis of the result of the detection and modifying the posture of the apparatus main body when it is determined that the apparatus main body is taking the predetermined posture.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic perspective view of a multi-legged walkable robot, illustrating its structure.

FIG. 2 is a schematic perspective view of the multi-legged walkable robot of FIG. 1, illustrating the arrangement of various sensors including acceleration sensors to be used for detecting a falling posture.

FIG. 3 is a schematic block diagram of the control system of the multi-legged walkable robot of FIG. 1.

FIG. 4 is a schematic perspective view of the multi-legged walkable robot of FIG. 1, illustrating its basic posture.

FIG. 5 is a schematic perspective view of the multi-legged walkable robot of FIG. 1, illustrating a posture where the left foreleg is raised from the basic posture.

FIG. 6 is a schematic perspective view of the multi-legged walkable robot of FIG. 1, illustrating a posture where the robot loses its balance.

FIG. 7 is a schematic perspective view of the multi-legged walkable robot of FIG. 1, illustrating a posture where the robot does not lose its balance.

FIG. 8 is a flow chart illustrating a method of editing a motion pattern of the multi-legged walkable robot of FIG. 1.

FIG. 9 is a flow chart illustrating an algorithm for determining the presence of a falling posture by means of the control section of the multi-legged walkable robot of FIG. 1.

FIGS. 10A and 10B are schematic illustrations of the relationship of the argument θ of the average acceleration Acc address the Y-Z plane and the angle Φ of the component of the average acceleration projected on the Y-Z plane and the Z-axis.

FIG. 11 is a schematic illustration of the relationship of the tumbling direction during a walk and the angle Φ that is defined as a function of the shape-related restrictive conditions of the multi-legged walkable robot of FIG. 1.

FIGS. 12A, 12B, 12C and 12D are schematic lateral views of the multi-legged walkable robot of FIG. 1, illustrating various falling postures that can occur when the robot is walking.

FIG. 13 is schematic lateral view of the multi-legged walkable robot of FIG. 1, illustrating how it restores the normal posture from a falling posture.

FIG. 14 is a schematic illustration of the multi-legged walkable robot of FIG. 1, showing how it detects its contact with a foreign object by means of its contact sensor when it is standing.

FIG. 15 is a schematic illustration of the multi-legged walkable robot of FIG. 1, showing how it detects its contact with a foreign object by means of its contact sensor when it is sitting.

FIG. 16 is a schematic lateral view of the multi-legged walkable robot of FIG. 1, illustrating how it takes in video information by means of a CCD camera when it is standing.

FIGS. 17A, 17B, 17C and 17D are schematic illustrations of the pieces of video information that the multi-legged walkable robot of FIG. 1 takes in by means of a CCD camera when it is standing.

FIG. 18 is a schematic illustration of the floor condition as determined by the multi-legged robot of FIG. 1 on the basis of the video information taken in by means of a CCD camera.

FIG. 19 is a schematic perspective view of a tired type robot apparatus comprising a rotary motion detecting device as abnormal posture detection means.

FIG. 20 is a schematic perspective view of a tired type robot apparatus comprising a floor surface detecting device as abnormal posture detection means.

FIG. 21 is schematic views of the multi-legged walkable robot of FIG. 1, illustrating how it restores its normal posture from a state of falling on its back.

BEST MODE FOR CARRYING OUT THE INVENTION

Now, the present invention will be described by referring to the accompanying drawings that illustrate a best mode of carrying out the invention.

FIG. 1 is a schematic perspective view of a multi-legged walkable robot 1 according to the invention.

The multi-legged walkable robot 1 is a multi-joint type robot having four legs and showing a profile resembling an animal. The multi-legged walkable robot 1 comprises a main body 2, a right foreleg 3, a left foreleg 4, a right hind leg 5, a left hind leg 6, a head 7, a trunk section 8, a tail 9.

The multi-joint type robot 1 has joints 10, 11, 12, 13 respectively for the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6, each of which joints is provided with a brake mechanism 30. Thus, the operator can give positional information on the relative position of any of the moving parts (legs) of the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6 to the robot, utilizing the action of the brake mechanism 30 and by means of a direct teaching method.

The main body 2 has brackets 20, 21, 22, 23 respectively for the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6. The head 7 is located at the front of the main body 2 and the trunk section 8 is located behind the head 7. The tail 9 is projecting upward from the trunk section 8.

Now, the components of the robot will be sequentially described in terms of the main body 2.

Firstly, the right foreleg 3 includes an upper leg 3 a, a lower leg 3 b, a bracket 20, joints 10, 10 a, a brake mechanism 30 and servo motors 3 c, 3 d, 3 e along with other components.

The upper leg 3 a is linked to the bracket 20 at the upper end thereof and rotatable around central axis CL1 in the direction of arrow R1. The upper leg 3 a and the lower leg 3 b are linked by means of the joint 10. The servo motor 3 c is contained in the main body 2 and adapted to drive the bracket 20 to rotate around central axis CL2 in the direction of arrow R2. The servo motor 3 d is adapted to drive the upper leg 3 a around the central axis CL1 in the direction of arrow R1. The servo motor 3 e is adapted to drive the lower leg 3 b around central axis CL3 in the direction of arrow R3 relative to the upper leg 3 a.

The left foreleg 4 includes an upper leg 4 a, a lower leg 4 b, a bracket 21, joints 11, 11 a, a brake mechanism 30 and servo motors 4 c, 4 d, 4 e along with other components.

The upper leg 4 a is linked to the bracket 21 at the upper end thereof and rotatable around central axis CL4 in the direction of arrow R4. The upper leg 4 a and the lower leg 4 b are linked by means of the joint 11. The servo motor 4 c is contained in the main body 2 and adapted to drive the bracket 21 to rotate around central axis CL5 in the direction of arrow R5. The servo motor 4 d is adapted to drive the upper leg 4 a around the central axis CL4 in the direction of arrow R4. The servo motor 4 e is adapted to drive the lower leg 4 b around central axis CL6 in the direction of arrow R6 relative to the upper leg 3 a.

The right hind leg 5 includes an upper leg 5 a, a lower leg 5 b, a bracket 22 joints 12, 12 a, a brake mechanism 30 and servo motors 5 c, 5 d, 5 e along with other components.

The upper leg 5 a is linked to the bracket 22 at the upper end thereof. The servo motor 5 c is adapted to drive the bracket 22 to rotate around central axis CL7 in the direction of arrow R7. The servo motor 5 d is adapted to drive the upper leg 5 a to rotate around central axis CL8 in the direction of arrow R8. The servo motor 5 e is adapted to drive the lower leg 5 b around central axis CL9 in the direction of arrow R9.

The left hind leg 6 includes an upper leg 6 a, a lower leg 6 b, a bracket 23 joints 13, 13 a, a brake mechanism 30 and servo motors 6 c, 6 d, 6 e along with other components.

The servo motor 6 c is adapted to drive the bracket 23 to rotate around central axis CL10 in the direction of arrow R10. The servo motor 6 d is adapted to drive the upper leg 6 ato rotate around central axis CL11 in the direction of arrow R11. The servo motor 6 e is adapted to drive the lower leg 6 b around central axis CL12 in the direction of arrow R12.

Thus, each of the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6 comprises components having a degree of freedom of 3 so that it can be driven by servo motors to rotate around a plurality of axes.

The head 7 comprises servo motors 7 a, 7 b, 7 c, of which the servo motor 7 a is adapted to drive the head 7 to swing around central axis CL20 in the direction of arrow R20. The servo motor 7 b is adapted to drive the head 7 to swing around central axis CL21 in the direction of arrow R21. The servo motor 7 c is adapted to drive the head 7 to swing around central axis CL 22 in the direction of arrow R22. Thus, the head 7 has a degree of freedom of 3.

The trunk section 8 comprises a servo motor 8 a, which is adapted to drive the tail 9 to swing around central axis CL23 in the direction of arrow R23.

As shown in FIG. 2, the main body 2 of the multi-joint type robot 1 contains a 3-axial (x, y, z) acceleration sensor 41 that can detect the acceleration and the angular velocity of the main body 2 in any posture. Additionally, the head 7 is provided with a CCD camera 43 and microphones 44. Still additionally, the head, the legs, the abdomen, the throat, the sitting and the rail are provided with respective contact sensors 45. The detection output of each of the sensors is transmitted to CPU (central processing unit) 102 arranged in control section 100 of the multi-joint type robot 1 by way of a bus 103.

FIG. 3 is a schematic block diagram of the multi-joint type robot 1, illustrating the wired connection of the control section 100, the servo motors for driving the respective joints of the right foreleg 3, the left fore leg 4, the right hind leg 5, the left hind leg 6, the head 7 and the tail 9 and the respective position sensors.

The control section 100 comprises a memory 101 and a CPU (central control unit) 102 and, as shown in FIG. 3, bus 103 of the CPU 102 is connected to the right foreleg 3, the left fore leg 4, the right hind leg 5, the left hind leg 6, the head 7 and the tail 9.

The right foreleg 3 comprises the above listed servo motors 3 c, 3 d, 3 e and position sensors 3P1, 3P2, 3P3. The servo motors 3 c, 3 d, 3 e are connected to respective drivers 3D and the position sensors 3P1, 3P2, 3P3 are also connected to the drivers 3D respectively. The drivers 3D are connected to the bus 103.

Similarly, the servo motors 4 c, 4 d, 4 e and the position sensors 4P1, 4P2, 4P3 of the left foreleg 4 are connected to respective drivers 4D and the servo motors 5 c, 5 d, 5 eand the position sensors 5P1, 5P2, 5P3 of the right hind leg 5 are connected to respective drivers 5D, whereas the servo motors 6 c, 6 d, 6 eand the position sensors 6P1, 6P2, 6P3 of the left hind leg 6 are connected to respective drivers 6D.

The servo motors 7 a, 7 b, 7 c and the position sensors 7P1, 7P2, 7P3 of the head 7 are connected to respective drivers 7D. The servo motor 9 a and the position sensor 9P1 of the sitting 9 are connected to drivers 9D.

The position sensors 3P1, 3P2, 3P3 of the right foreleg 3, the position sensors 4P1, 4P2, 4P3 of the left foreleg 4, the position sensors 5P1, 5P2, 5P3 of the right hind leg 5 and the position sensors 6P1, 6P2, 6P3 of the left foreleg 6 are designed to collect positional information for the respective positions. A rotary angle sensor such as a potentiometer may be used for each of the position sensors for the purpose of detecting the angle of the joint for which it is responsible. Upon receiving the positional information obtained by the position sensors 3P1 through 6P3, which may be so many rotary angle sensors, the CPU 102 issues a command to each of the related drivers on the basis of the positional information fed back to it. Then, each of the related driver servo-controls the corresponding servo motor according to the command given by the CPU 102 and drives the servo motor to rotate to the position indicated by the command.

FIGS. 4 through 7 are simplified illustrations of the multi-legged walkable robot 1 of FIG. 1. The section 8 caries the head 7, the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6. The legs 3 through 5 are provided with respective joints 10, 11, 12, 13, 30, 30, 30, 30.

FIG. 4 shows the basic posture of the multi-legged walkable robot 1, where the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6 are all straightened. FIG. 5 shows that the joint 11 and the joint 30 of the left foreleg 4 are made to move from the basic posture of FIG. 4.

The right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6 are all made to contact the ground surface 300 in FIG. 4. On the other hand, the left foreleg 4 is thrown forward to take the posture of FIG. 5 as the joins 11, 30 of the left foreleg 4 are made to move.

When the operator determines the angle of the joint 11 of the left elbow of the left foreleg 4 and the angle of the joint 30 of the left shoulder of the multi-legged walkable robot 1, he or she carries out an operation of editing a motion pattern of the multi-legged walkable robot in the following manner.

In the editing operation of giving a motion to both of the joints 11, 30 of the multi-legged walkable robot 1 to make them move from the positions of FIG. 4 to the positions shown in FIG. 5, the position of the center of gravity W0 of the multi-legged walkable robot 1 in the posture of FIG. 5 is calculated by means of the software of external editing commander computer 400 of the control section 100 as shown in FIG. 3 and then at least the angles of the joints of one of the right foreleg 3, the right hind leg 5 and the left hind leg 6 are automatically determined in such a way that the multi-legged walkable robot 1 would not fall down from the position of the center of gravity W0. In this operation, commands are issued from the external editing commander computer 400 to the CPU 102 of the control section and the CPU 102 by turn issues a motion command to each of the servo motors of the related leg.

The weights of the components of the multi-legged walkable robot 1 including the trunk section 8, the main body 2, the right foreleg 3, the left foreleg 4, the right hind leg 5, the left hind leg 6 and the head 7 are stored in advance in memory 402 of the external editing commander computer 400 so that the position of the center of gravity W0 of the multi-legged walkable robot 1 in the posture of FIG. 4 can be calculated on the stored weight data.

Now, a technique that can be used for editing a motion pattern of the multi-legged walkable robot 1 will be described by referring to FIG. 8.

Referring to FIG. 8, before Step S1, data including the weights and the profiles of the components of the multi-legged walkable robot 1 are stored in advance in the memory 101. More specifically, data including the weights and the profiles of the components including the main body 2, the trunk section 8, the head 7, the right foreleg 3, the left foreleg 4, the right hind leg 5, the left hind leg 6 and the tail 9 are stored in the memory 101 and the data are sent from the memory 101 to the memory 402 of the external editing commander computer 400. This processing operation of acquiring data on the weights and the profiles is performed in Step S1.

Then, the processing operation of editing the posture of the multi-legged walkable robot 1 starts in Step S2. In other words, instructions are given to the joints 11 and 30 so as to make them move until the left foreleg 4 is thrown forward to take the posture as shown in FIG. 5. However, if simply the left foreleg 4 is thrown forward, the center of gravity is shifted to the side of the left foreleg 4 and the multi-legged walkable robot 1 may fall left forward.

Thus, in order to prevent the multi-legged walkable robot 1 from falling, once the joints 11, 30 are moved to make the left foreleg 4 thrown forward as shown in FIG. 5, the external editing commander computer 400 of the control section 100 in FIG. 3 determines by calculation new center of gravity W1 that is located behind the current center of gravity W0 along line T in FIG. 5 in terms of the main body 2 and the trunk section 8 and obtains data for the calculated new center of gravity W1. In order to shift the center of gravity from W0 to W1, the joints 10, 12, 13 and the joints 30, 30, 30 of the right foreleg 3, the right hind leg 5 and the left hind leg 6 should be moved in a manner as shown in FIG. 7. These motions will be made under the control of the external editing commander computer 400.

In order to make the multi-legged walkable robot 1 well-balanced, the motions of the joints 10, 12, 13 and the joints 30, 30, 30 of the right foreleg 3, the right hind leg 5 and the left hind leg 6 are preferably determined by taking Steps S4 and S5 in FIG. 8. In other words, the projected point IM of the new center of gravity W1 on the ground surface 300 should be found within triangular center of gravity safety area AR shown in FIG. 7. The center of gravity safety area AR is defined by the triangle having its three corners at the grounded point CP1 of the right foreleg 3, the grounded point CP2 of the right hind leg 5 and the grounded point CP3 of the left hind leg 6.

So long as the projected IM of the center of gravity W1 is constantly located within the safety area AR, the joints 10, 12, 13 and the joints 30, 30, 30 of the right foreleg 3, the right hind leg 5 and the left hind leg 6 can be moved without causing the multi-legged walkable robot 1 to fall. Then, a stable posture can be selectively taken with a minimal amount of motion.

Now, it will be clear by comparing FIG. 5 and FIG. 7 that, when the multi-legged walkable robot 1 is made to throw its left foreleg 4 forward, its center of gravity is shifted from W0 to W1 and, at the same time, the hind legs 5, 6 are bent slightly to take a somewhat crouched posture. After determining the new center of gravity by calculation in Step S3, the multi-legged walkable robot 1 is observed to see if it is going to fall or not in Step S4. If it is going to fall, the external editing commander computer 400 determines necessary motions of other appropriate joints (table of angles) in Step S4 and returns to Step S3, where it determines a new center of gravity for another time.

If, on the other hand, it is found in Step S4 that the multi-legged walkable robot 1 is not going to fall, the external editing commander computer 400 advances to Step S6, where it terminates the operation of editing the motion pattern of the multi-legged walkable robot 1. When the editing operation is terminated, the external editing commander computer 400 inputs the edited and finalized motion pattern to the CPU 102 of the multi-legged walkable robot 1 (Step S7).

The control section 100 constantly watching the part of the multi-legged walkable robot 1 to detect any falling posture thereof on the basis of the acceleration information AccXt, AccYt, AccZt along the three axes (x, y, z) obtained by the 3-axial (x, y, z) acceleration sensor 41 contained in the main body 2. Whenever the control section 100 detects a falling posture, it makes the robot restore the normal posture.

FIG. 9 is a flow chart illustrating an algorithm for determining the presence of a falling posture by means of the control section 100 of the multi-legged walkable robot 1.

Referring to FIG. 9, the control section 100 detects any falling posture on the basis of the acceleration information AccXt, AccYt, AccZt along the three axis (x, y, z) detected by the acceleration sensor 41 in a manner as described below.

For determining the presence of a falling posture, in Step S11, the control section 100 discards the oldest acceleration information AccXn, AccYn, AccZn in the data buffer and updates the time tag of the data in the data buffer. In the multi-legged walkable robot 1, the buffer number of the data buffer is 50 for each of the three axes.

AccXk→AccXk+1(k=0˜n−1)  (formula 1)

AccXk→AccXk+1(k=0˜n−1)  (formula 2)

AccXk→AccXk+1(k=0˜n−1)  (formula 3)

Then, in Step S12, the acceleration information AccXt, AccYt, AccZt along the three axes (x, y, z) obtained by the acceleration sensor 41 is stored in the data buffer. The data updating rate of this multi-legged walkable robot 1 is 10 ms.

AccXo→AccXt  (formula 4)

AccXo→AccXt  (formula 5)

AccXo→AccXt  (formula 6)

Then, in Step S13, the control section 100 calculates temporal average accelerations AccX, AccY, AxxZ along the three axes (x, y, z) from the data in the data buffer.

AccX=ΣAccXk/n(k=0˜n)  (formula 7)

AccX=ΣAccXk/n(k=0˜n)  (formula 8)

AccX=ΣAccXk/n(k=0˜n)  (formula 9)

Then, in Step S14, the argument θ of the average acceleration Acc and the Y-Z plane and the angle Φ of the component of the average acceleration projected on the Y-Z plane and the Z-axis are determined (see FIGS. 10A and 10B).

Acc=(AccX ² +AccY ² +AccZ ²)^(½)  (formula 10)

 θ=asin(AccY/((AccY ² +AccZ ²)^(½)))  (formula 11)

Φ=asin(AccZ/Acc)  (formula 12)

In Step S15, it is determined if the average acceleration (Euclidian distance) Acc is found within the tolerable range (ΔAcc) or not. If the average acceleration Acc is not found within the tolerable range, the control section 100 moves out of the falling posture determining process because the robot may be subjected to a large external force, trying to lift it.

Acc>1.0+ΔAcc[G] or Acc<1.0−ΔAcc[G]→exemption from processing operation  (formula 13)

Then, in Step S16, the control section 100 compares the argument θ of the average acceleration Acc and the Y-Z plane and the angle Φ of the component of the average acceleration projected on the Y-Z plane and the Z-axis with the template argument θm of the average acceleration Ace and the Y-Z plane and the template angle Φm of the component of the average acceleration projected on the Y-Z plane and the Z-axis that are template data for the current posture. If the differences are within the respective tolerable ranges (Δθm, ΔΦm), the control section 100 determines that the current posture is normal. If, on the other hand, the differences are out of the respective tolerable ranges, it determines that the robot is falling or in an abnormal posture. When, the robot is walking, θ=−π/2 and Φ=arbitrary.

θ>θm+Δθm or θ<θm−Δθm  (formula 14)

Φ>Φm+ΔΦm or Φ<Φm−ΔΦm  (formula 15)

Since a falling phenomenon is a very low frequency phenomenon relative to the sampling frequency of angular velocity, the use of data buffer for determining averages over a period of time can reduce the possibility of errors due to noises in determining a falling posture. Additionally, this technique provides the advantage of a low load if compared with the use of a low pass digital filter for processing data.

If a falling posture is detected by the above processing operation of determining a falling posture (Step S17). The processing operation proceeds to Step S18 to restore the normal posture in a manner as described below.

In the processing operation for restoring the normal posture, firstly the falling direction is determined on the basis of the argument θ of the average acceleration Acc and the Y-Z plane and the angle Φ of the component of the average acceleration projected on the Y-Z plane and the Z-axis. The multi-legged walkable robot 1 can fall only in one of the four directions of (A), (B), (C), (D) in FIG. 11 because of its shape. Therefore, it is determined if the robot is falling forward (head side down) as shown in FIG. 12A by means of formula

0<Φ<(¼)π or −(¼)π<Φ<0  (formula 16).

Then, control section 100 determine if the robot is falling rightward (right side down) as shown in FIG. 12B by means of formula

(¼)π<Φ<(¾)π  (formula 17).

Then, the control section 100 determines if the robot is falling leftward (left side down) as shown in FIG. 12C by means of formula

 −(¼)π>Φ>−(¾)π  (formula 18).

Finally, the control section 100 determines if the robot is falling rearward (tail side down) as shown in FIG. 12D by means of formula

(¾)π<Φ or Φ>−(¾)π  (formula 19).

Thereafter, the control section 100 restores the normal posture of the robot from the falling posture, which is one of the four postures (head side down, right side down, left side down, tail side down) stored in the memory 101 in advance by means of a play back technique using route planning data. However, there may be occasions where the falling posture of the robot is changed while restoring the normal posture. For example, a head side down posture may be changed to a right or left side down posture while the control section 100 is restoring the normal posture of the robot. Then, the current restoring operation is terminated quickly and the process of detecting the falling posture and restoring the normal posture will be repeated to make the robot restore the normal posture quickly.

FIG. 13 is schematic lateral view of the multi-legged walkable robot 1, illustrating how it restores the normal posture from a head side down posture.

Route planning data for restoring the normal posture from the head side down posture of the robot can be generated for the operator by instructing the multi-legged walkable robot 1 about the relative positional relationship of the right foreleg 3, the left foreleg 4, the right hind leg 5 and the left hind leg 6 by means of a direct teaching method so that the generated route planning data may be stored in the memory 101.

While the control section 100 determines the falling posture of the multi-legged walkable robot 1 on the basis of the acceleration information obtained by the 3-axial (x, y, z) acceleration sensor 41 contained in the main body 2 and restores the normal posture of falling posture, which is one of the four postures (head side down, right side down, left side down, tail side down) stored in the memory 101 in advance in the above description, it may alternatively be so arranged that the control section 100 determines the falling posture of the robot by means of an angular velocity sensor, an angular acceleration sensor or an inclination sensor that can also be contained in the main body 2 for the operation of restoring the normal posture of the robot. Still alternatively, it may be so arranged that the control section 100 combines the outputs of more than one different sensors to determine the falling posture of the robot before restoring the normal posture of the robot.

If the multi-legged walkable robot is four-legged, an abnormal posture of the robot can be detected by comparing the posture models stored in the inside and the outputs of the contact sensors arranged at the tips of the legs and at various positions of the main body.

For example, if the robot is standing as shown in FIG. 14, only the contact sensors 45A, 45B arranged at the tips of the legs detect a contact condition out of the contact sensors 45A, 45B, 45C. However, if the robot is sitting and trying to use the forelegs as shown in FIG. 15, the contact sensors 45 arranged at the tips of the hind legs and the contact sensor 45C arranged at the sitting detect a contact condition. Therefore, if the postures of the robot and the ideal conditions of the contact sensors 45 are stored in the memory of the robot main body 2 in advance, an abnormal posture can be detected by comparing the outputs of the contact sensors 45 and the stored data when the robot is taking any of the stored posture.

In the case of a robot apparatus comprising an image input device, an abnormal posture can be detected by recognizing the ground surface by means of the image input device and determining the correlation of the ground surface condition and the posture that the robot is trying to take.

More specifically, when such a multi-legged walkable robot 1 takes a normal posture as shown in FIG. 16, the CCD camera 43 of the image input device picks up an image as shown in FIG. 17A where the floor surface F shows a horizontal line. However, when the robot 1 takes an abnormal posture, the CCD camera 43 may pick up an image as shown in FIG. 17B where the floor surface F is turned upside down or an image as shown in FIG. 17C or 17D where the for surface F is inclined. Thus, an abnormal posture can be detected by judging the state of the floor surface F obtained as output of the CCD camera 43.

For judging the state of the floor surface F, the operation of detecting the end of the coordinate system of the image in the Y-direction may be repeated as shown in FIG. 18 to define a line by means of the coordinate values obtained from the repeated detecting operation and determine the lateral edges of the floor surface F. Similarly, the operation of detecting the end of the coordinate system of the image in the X-direction may be repeated as shown in FIG. 18 to define a line by means of the coordinate values obtained from the repeated detecting operation and determine the longitudinal edges of the floor surface F. Then, a line defining showing inclined floor surface can be obtained by combining them.

In the case of a tired type robot that uses wheels for moving, the wheels have to be constantly held in contact with the floor surface when it is operating so that an abnormal posture can be detected in a manner as described below.

For example, an abnormal posture can be detected by detecting the number of revolutions per unit time of each of the follower shafts by means of so may revolution detectors RD and comparing it with the number of revolutions per unit time of each of the rotary output devices RO as shown in FIG. 19.

Alternatively, an abnormal posture can be detecting by mans of a floor surface detector FD particularly the robot is tumbled. For the floor surface detector FD, a non-contact type sensor comprising a light emitting device and a light receiving device or a contact type sensor such as a micro-switch may suitable be used.

If the normal posture is restored from a falling posture by means of a playback technique, the motion of restoring the normal posture from the falling posture may be limited to certain state transitions depending on the profile of the robot apparatus. In the case of a multi-joint type robot 1 such as a four-legged robot, there can exist a total of six states including the above listed four falling postures (head side down, right side down, left side down, tail side down), a back side down state where the robot is turned upside down and a stomach side down state where the robot lies flat on the floor. Then, the motion of restoring the normal posture from a falling posture proceeds by way of a stomach side down state. The motion of restoring the normal posture from a back side down state has to proceeds by way of one of the four falling postures (head side down, right side down, left side down, tail side down) before getting to the stomach side down state. Therefore, motion data for the play back technique may be prepared for each of the normal posture restoring motions that the robot can take so that the data for a particular restoring motion can be retrieved by detecting and determining the falling posture. Then, if the robot fell for an unexpected external disturbance, the right restoring motion can be immediately selected and performed. It will be appreciated that the operation of preparing motion data can be simplified with this arrangement of dividing a restoring motion into component motions.

If the above arrangement is not used and if motion data are prepared retrieved for the entire motion of restoring the normal posture from a back side down state, the following problems arise.

1. If the posture of the robot is forcibly restored to the normal posture by external force, the robot cannot start the next motion until the ongoing restoring motion is completed.

2. If the motion data for restoring the normal-posture are prepared to proceed by way of the left side down state and the robot is forced to proceed by way of some other state (e.g., by way of the right side down state) due to an external factor (e.g., a projection on the floor surface), the intended normal posture restoring motion becomes abortive and the operation turns out inutile.

3. If the current falling posture is changed while the restoring motion is going on and the ongoing operation is suspended to start a new motion, the joints may have to subjected to a large load because of the disrupted motion.

As described above in detail, a robot apparatus according to the invention can restore the normal posture from an abnormal posture by itself by detecting the posture of the apparatus main body, determining if the apparatus main body is taking a predetermined posture or not on the basis of the result of the detection and modifying the posture of the apparatus main body when it is determined that the apparatus main body is taking the predetermined posture.

Therefore, the present invention provides a robot apparatus that can restore the normal posture from an abnormal posture by itself.

Thus, since a robot apparatus according to the invention can restore the normal posture from an abnormal posture by itself, the robot apparatus is prevented from being damaged or causing an accident if operated in an abnormal posture such as a falling posture. Additionally, a robot apparatus according to the invention can effectively alleviate the workload of the operator for restoring the normal posture of the robot. 

What is claimed is:
 1. A robot apparatus comprising: at least fore legs; control means for controlling said legs; posture detection means for detecting a posture of an apparatus main body and outputting a result of said detection; and posture determination means for determining whether said apparatus main body is taking at least a right side down posture or a left side down posture on a basis of said result of said detection; said control means controlling said legs in order to recover from said right side down posture or said left down posture to a normal posture by way of a stomach side down posture at least one when said posture determination means determines that said apparatus main body takes said right side down posture or left side down posture.
 2. The robot apparatus according to claim 1, further comprising: memory means which stores programs for a recovery from one of the fall down postures by way of the stomach side down posture, wherein said control means controls said legs according to said programs.
 3. A robot apparatus comprising: a controller for detecting when said robot apparatus has assumed an abnormal posture, said controller commanding said robot apparatus to assume a normal posture once said abnormal posture has been detected.
 4. The robot apparatus according to claim 3, wherein said abnormal posture is a falling posture.
 5. The robot apparatus according to claim 3, further comprising: a plurality of support members extending from a body, said plurality of support members being structurally adapted to support said body above a floor.
 6. The robot apparatus according to claim 5, wherein said plurality of support members comprise a plurality of legs.
 7. The robot apparatus according to claim 5, wherein said plurality of support members is more than two support members.
 8. The robot apparatus according to claim 5, wherein said abnormal posture is defined by less than three of said plurality of support members being in contact with said floor.
 9. The robot apparatus according to claim 5, wherein said normal posture is defined by at least three of said plurality of support members being in contact with said floor.
 10. The robot apparatus according to claim 5, wherein said normal posture is defined by at least three of said plurality of support members supporting said body above said floor.
 11. The robot apparatus according to claim 5, wherein said controller controls said plurality of support member.
 12. The robot apparatus according to claim 11, wherein said plurality of support members urge said robot apparatus to said normal posture.
 13. The robot apparatus according to claim 5, wherein: said body includes a head side, a tail side, a left side and a right side; and said plurality of support members includes a left foreleg, a right foreleg, a left hind leg, and a right hind leg.
 14. The robot apparatus according to claim 13, wherein said left foreleg is adjacent said head side and said left side.
 15. The robot apparatus according to claim 13, wherein said right foreleg is adjacent said head side and said right side.
 16. The robot apparatus according to claim 13, wherein said left hind leg is adjacent said tail side and said left side.
 17. The robot apparatus according to claim 13, wherein said right hind leg is adjacent said tail side and said right side.
 18. The robot apparatus according to claim 5, wherein: said body includes a head side, a tail side, a left side and a right side; and said abnormal posture comprises one of a head side down posture, a tail side down posture, a left side down posture, and a right side down posture.
 19. The robot apparatus according to claim 18, wherein said head side down posture is defined by said head side being closer to said floor than said left and right hind support members.
 20. The robot apparatus according to claim 18, wherein said tail side down posture is defined by said tail side being closer to said floor than said left and right forelegs.
 21. The robot apparatus according to claim 18, wherein said left side down posture is defined by said left side being closer to said floor than said right foreleg and said right hind leg.
 22. The robot apparatus according to claim 18, wherein said right side down posture is defined by said right side being closer to said floor than said left foreleg and said left hind leg.
 23. The robot apparatus according to claim 18, further comprising memory, a posture model of said abnormal posture being stored within said memory.
 24. The robot apparatus according to claim 23, wherein a sensor output is compared against said posture model.
 25. The robot apparatus according to claim 24, wherein said sensor output is outputs from contact sensors, a contact sensor of said contact sensors being located at the tip of each leg of said plurality of support members.
 26. The robot apparatus according to claim 24, wherein said sensor output is outputs from contact sensors, said contact sensors being located on said body.
 27. The robot apparatus according to claim 24, wherein said sensor output is an image output of the positional relationship of said floor relative to said robot apparatus.
 28. The robot apparatus according to claim 5, wherein said abnormal posture is detected based upon the output of more than one different sensors.
 29. The robot apparatus according to claim 5, wherein said abnormal posture is detected based upon an angular velocity sensor.
 30. The robot apparatus according to claim 5, wherein said abnormal posture is detected based upon an angular acceleration sensor.
 31. The robot apparatus according to claim 5, wherein said abnormal posture is detected based upon an inclination sensor.
 32. The robot apparatus according to claim 5, wherein said abnormal posture is detected based upon acceleration information from an acceleration sensor.
 33. The robot apparatus according to claim 32, wherein acceleration sensor is a 3-axial sensor.
 34. The robot apparatus according to claim 5, wherein said plurality of support member comprises a plurality of wheels. 